
<link rel="stylesheet" href="{{ URL::asset('vendor/animate.css/animate.min.css') }}">

<script src="{{ asset("js/common.js") }}"></script>

<link rel="stylesheet" href="../vendor/animate.css/animate.min.css">
<link rel="stylesheet" href="../vendor/icheck/skins/all.css">
<link rel="stylesheet" href="../vendor/select2/dist/css/select2.css">
<link rel="stylesheet" href="../vendor/select2/dist/css/select2-bootstrap.min.css">
<link rel="stylesheet" href="../vendor/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<link rel="stylesheet" href="../vendor/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css">


<script src="../vendor/icheck/icheck.min.js"></script>
<script src="../vendor/select2/dist/js/select2.min.js"></script>
<script src="../vendor/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="../vendor/bootstrap-datepicker/dist/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="../vendor/bootstrap-switch/dist/js/bootstrap-switch.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {

        $("[type='checkbox'],[type='radio']").iCheck({
            checkboxClass: 'icheckbox_flat-blue',  //每个风格都对应一个，这个不能写错哈。
            radioClass: 'iradio_square-green',
            labelHover : false,
            cursor : true,
        });
        var data = [{ id: 0, text: 'enhancement' }, { id: 1, text: 'bug' }, { id: 2, text: 'duplicate' }, { id: 3, text: 'invalid' }, { id: 4, text: 'wontfix' }];

        $(".select2-basic").select2({
            data:data,
            theme: "bootstrap",
            placeholder: "Select a state",
            allowClear: true,
            tags: true,
            language: "zh-CN"
        });
        $("select2_demo_1").select2({
            data:data,
            theme: "bootstrap",
            placeholder: "Select a state",
            allowClear: true
        });
        $("select2_demo_3").select2({
            data:data,
            theme: "bootstrap",
            placeholder: "Select a state",
            allowClear: true,
            maximumSelectionLength: 2,
            minimumResultsForSearch: Infinity
        });

        $('.date-pick').datepicker({
            format: "yyyy-mm-dd",
            maxViewMode: 2,
            language: "zh-CN",
            todayHighlight: true
        });

        $("[data-type='switch']").bootstrapSwitch(
            {
                onText:"开",
                offText:"关",
                onColor:"success",
                offColor:"danger",
                size:"small",
                onSwitchChange:function(event,state){
                    if(state==true){
                        $(this).val("1");
                    }else{
                        $(this).val("0");
                    }
                }
            }
        );

//        $('#fileupload').fileupload({
//
//            url: '/gallery',
//            dataType: 'json',
//            done: function (e, data) {
//                $.each(data.result.files, function (index, file) {
//                    $('<p/>').text(file.name).appendTo(document.body);
//                });
//            },
//
//            progressall: function (e, data) {
//                var progress = parseInt(data.loaded / data.total * 100, 10);
//                $('#progress .bar').css('width', progress + '%');
//            }
//
//        });
    });
</script>